/**
 * Created by ZOE on 2017/5/10.
 */

//图片验证码
function refreshCode(codeName){
    $(codeName).attr('src',ctx+'/jcaptcha.jpg'+'?t='+new Date().getTime());
}
function ryzm(){
    refreshCode('#codeImge');
}

function timestamp(){
    var url = $("[name='timeImg']").attr("src");
    var getTimestamp=new Date().getTime();
    if(url){
        if(url.indexOf("?")>-1){
            url=url+"&t="+getTimestamp
        }else{
            url=url+"?t="+getTimestamp
        }
        $("[name='timeImg']").attr("src", url);
    }
}

$(document).ready(function(){
    timestamp();
});